package com.example.pattern.mediator;

/**
 * 同事类抽象接口
 *
 * @author FM_南风
 * @date 2024/7/6
 */
abstract class Colleague {
	protected Mediator mediator;

	public Colleague(Mediator mediator) {
		this.mediator = mediator;
	}

	public abstract void sendMessage(String message);
	public abstract void receiveMessage(String message);
}
